package com.ganzalang.gmall.gmallfreemarker.controller;

import com.alibaba.fastjson.JSON;
import com.ganzalang.gmall.gmallfreemarker.api.dto.UserDTO;
import com.ganzalang.gmall.gmallfreemarker.api.req.UserLoginReq;
import com.ganzalang.gmall.gmallfreemarker.common.api.BaseResult;
import com.ganzalang.gmall.gmallfreemarker.demo.db.UserDb;
import com.ganzalang.gmall.gmallfreemarker.demo.entity.UserDemoEntity;
import com.ganzalang.gmall.gmallfreemarker.util.JwtUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.io.IOException;

@Controller
@Slf4j
public class IndexController {



    @GetMapping("/index")
    public String index(HttpServletRequest request) throws IOException {
        log.info("index");
        return "index";
    }
}
